<?php

namespace plugin\muadmin\app\admin\controller\auth;

use plugin\muadmin\app\common\base\BaseAdminController;

class Adminlog extends BaseAdminController
{
    public function initialize()
    {
        parent::initialize();
        if($this->request->action=='index'){
            $this->model = (new \plugin\muadmin\app\common\model\AdminLog())->where('admin_id',$this->auth->id);
        }else{
            $this->model = new \plugin\muadmin\app\common\model\AdminLog();
        }
    }
}